#!/bin/sh
#comments
read -p  '请输入开始升级时间:' upstart
read -p '请输入升级结束时间:' upend
echo ''
a=`date -d "$upstart"`
now=`date +%Y-%m-%d`
ss=$(expr $(date +%s -d "$upend") - $(date +%s -d "$upstart"));
ss=$(expr $ss / 86400);
echo $ss;
for i in $(seq $ss); do
    mt=`date -d "$upstart +$i days" +%Y%m`;
    b=`date -d  "$upstart +$i days" +%Y-%m-%d`
    echo "php -f ./dayScanTemp.php $b"
    php -f ./dayScanTemp.php $b
done;
rm $p  -rf;